home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format CD 51
/
Amiga Format CD51 (2000-03-10)(Future Publishing)(GB)[!][issue 2000-04].iso
/
-in_the_mag-
/
pdselect
/
charon
/
rexx
/
addurl.rexx
Wrap
OS/2 REXX Batch file
|
2000-02-16
|
482b
|
28 lines
/* Adds URL passed as first argument to the list */
OPTIONS RESULTS
CharonPath = "W:Charon"
PARSE ARG URL
IF (URL = '' | URL = '?') THEN DO
SAY 'URL/A'
EXIT 20
END
P = ' ' || ADDRESS() || ' ' || SHOW('P',,)
IF POS(' CHARON.', P) > 0 THEN charonport = WORD(SUBSTR(P, POS(' CHARON.', P) + 1), 1)
ELSE DO
ADDRESS COMMAND
"Run >NIL: " || CharonPath
"WaitForPort CHARON.1"
charonport = 'CHARON.1'
END
ADDRESS(charonport)
NEWURL URL
ID=RESULT
IF ID ~= 0 THEN START 'ID='||ID